package com.sdp.flow.dto;

import java.util.HashMap;
import java.util.Map;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class FlowParam {

	private String userId;//当前登录人编号(一般也是任务办理人)
	
	private String bizId;//业务主键ID
	
	private String templateId;//模板ID
	
	private String instanceId;//流程实例ID
	
	private String taskId;//任务ID
	
	private Map<String, Object> variableMap;//流程变量
	
	private Map<String, String> opinionMap;//审批意见
	
	public void setOpinion(String approvalOpinion) {
		this.opinionMap = new HashMap<String, String>();
		this.opinionMap.put("1", approvalOpinion);
	}
}
